/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80403 (8.4.3)
 Source Host           : localhost:33069
 Source Schema         : test

 Target Server Type    : MySQL
 Target Server Version : 80403 (8.4.3)
 File Encoding         : 65001

 Date: 11/01/2025 13:32:09
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for Users
-- ----------------------------
DROP TABLE IF EXISTS `Users`;
CREATE TABLE `Users` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `phone` varchar(255) NOT NULL,
  `password` varchar(255) DEFAULT NULL,
  `openId` varchar(255) DEFAULT NULL,
  `role` int NOT NULL DEFAULT '0',
  `createdAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `phone` (`phone`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- ----------------------------
-- Records of Users
-- ----------------------------
BEGIN;
INSERT INTO `Users` (`id`, `phone`, `password`, `openId`, `role`, `createdAt`, `updatedAt`) VALUES (1, '12312341237', '123456', NULL, 0, '2025-01-03 13:30:02', '2025-01-11 04:14:44');
INSERT INTO `Users` (`id`, `phone`, `password`, `openId`, `role`, `createdAt`, `updatedAt`) VALUES (2, '12312341234', '123456', NULL, 2, '2025-01-03 13:30:02', '2025-01-11 04:14:30');
INSERT INTO `Users` (`id`, `phone`, `password`, `openId`, `role`, `createdAt`, `updatedAt`) VALUES (3, '12312341235', '123456', NULL, 1, '2025-01-03 13:30:02', '2025-01-11 04:14:35');
INSERT INTO `Users` (`id`, `phone`, `password`, `openId`, `role`, `createdAt`, `updatedAt`) VALUES (4, '12312341236', '123456', NULL, 1, '2025-01-03 13:30:02', '2025-01-11 04:14:39');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
